import 'package:flutter/material.dart';
import 'login.dart';
import 'home.dart';
import 'course.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      routes: {
        "/":(context)=>MyHomePage(title:"你好"),
        "login":(context)=>LoginPage(),
        "course":(context)=>CoursePage(),
      },
      initialRoute: "course",
    );
  }
}
